package com.casic.ops.entity.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.casic.ops.consts.Const;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName ops-platform
 * @Description  应用表
 * @Author mianbin
 * @Date 2022/5/31 10:59
 * @Version 1.0
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("application_info")
public class ApplicationInfoDO implements Serializable{

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 名称
     */
    @TableField("app_name")
    private String appName;

    /**
     * 标识符
     */
    @TableField("app_tag")
    private String appTag;

    /**
     * 排序
     */
    @TableField("app_sort")
    private Integer appSort;

    /**
     * 版本控制id
     */
    @TableField(value = "vcs_id", updateStrategy = FieldStrategy.IGNORED)
    private Long vcsId;

    /**
     * 描述
     */
    @TableField("description")
    private String description;

    /**
     * 是否删除 1未删除 2已删除
     *
     * @see Const#NOT_DELETED
     * @see Const#IS_DELETED
     */
    @TableLogic
    private Integer deleted;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField("update_time")
    private Date updateTime;

}
